package com.warm.base.design.b_visitor;

/**
 * @Date: 2019/11/27 15:26
 * @Author: LChuang
 * @Description:
 */
public class ConcreteVisitorB implements Visitor{
    @Override
    public void visit(ConcreteElementA elementA) {
        System.out.println("工程师:" + elementA.name + ", KPI:" + elementA.kpi + ", Codes:" + elementA.getCodeLines());
    }

    @Override
    public void visit(ConcreteElementB elementB) {
        System.out.println("经理:" + elementB.name + ", KPI:" + elementB.kpi + ", Products:" + elementB.getProduces());
    }
}
